package com.technology.wrapper;

public class PrimitiveTypeWrapper {

	public static void main(String[] args) {
		
		int index = 12;
		Integer number = new Integer(12),
				num1 = Integer.valueOf("123");
		Integer maxValue = 25; //new Integer(25); unboxing
		int example = number;//boxing
		
		if (5 == number){
			System.out.println("number = 5");
		}
		
		int in = 154252;
		if (new Integer(in).equals(in)){//not work in early jdk version
			System.out.println("128 equals new Integer(128)");
		}
		else {
			System.out.println("128 doesn't equal new Integer(128)");
		}
	}

}
